<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;

/**
 * 用户主表
 * Class Member
 *
 * @since 2.0
 *
 * @Entity(table="member", pool="db.pool")
 */
class Member extends Model
{

    /**
     *
     * @Id(incrementing=true)
     *
     * @Column(name="id")
     *
     * @var int|null
     */
    private $id;

    /**
     *
     * @Column(name="openid", prop="openid")
     *
     * @var string|null
     */
    private $openid;

    /**
     *
     * @Column(name="nickname", prop="nickname")
     *
     * @var string|null
     */
    private $nickname;

    /**
     *
     * @Column(name="username", prop="username")
     *
     * @var string|null
     */
    private $username;

    /**
     *
     * @Column(name="password")
     *
     * @var string|null
     */
    private $password;

    /**
     * @Column(name="email")
     * @var string|null
     */
    private $email;

    /**
     * @Column(name="age")
     * @var int|null
     */
    private $age;

    /**
     * @Column(name="sex")
     * @var string|null
     */
    private $sex;

    /**
     * @Column(name="tel")
     * @var string|null
     */
    private $tel;

    /**
     * @Column(name="addr")
     * @var string|null
     */
    private $addr;

    /**
     *  @Column(name="card")
     *  @var string|null
     */
    private $card;

    /**
     * @Column(name="salary")
     * @var float|null
     */
    private $salary;

    /**
     * 添加时间
     *
     * @Column(name="add_time", prop="addTime")
     *
     * @var int
     */
    private $addTime;

    /**
     * 更新时间
     *
     * @Column(name="last_update_time", prop="lastUpdateTime")
     *
     * @var int
     */
    private $lastUpdateTime;


    /**
     * @param int|null $id
     */
    public function setId(?int $id): void
    {
        $this->id = $id;
    }

    /**
     * @return int|null
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @param string|null $openId
     */
    public function setOpenid(?string $openid): void
    {
        $this->openid = $openid;
    }

    /**
     * @return string|null
     */
    public function getOpenid(): ?string
    {
        return $this->openid;
    }

    /**
     * @param string|null $nickname
     */
    public function setNickname(?string $nickname): void
    {
        $this->nickname = $nickname;
    }

    /**
     * @return string|null
     */
    public function getNickname(): ?string
    {
        return $this->nickname;
    }

    /**
     * @param string|null $username
     */
    public function setUsername(?string $username): void
    {
        $this->username = $username;
    }

    /**
     * @return string|null
     */
    public function getUsername(): ?string
    {
        return $this->username;
    }

    /**
     * @param string|null $password
     */
    public function setPassword(?string $password): void
    {
        $this->password = $password;
    }

    /**
     * @return string|null
     */
    public function getPassword(): ?string
    {
        return $this->password;
    }

    /**
     * @param string|null $email
     */
    public function setEmail(?string $email): void
    {
        $this->email = $email;
    }

    /**
     * @return string|null
     */
    public function getEmail(): ?string
    {
        return $this->email;
    }

    /**
     * @param int|null $age
     */
    public function setAge($age): void
    {
        $this->age = $age;
    }

    /**
     * @return int|null
     */
    public function getAge(): ?int
    {
        return $this->age;
    }

    /**
     * @param string|null $sex
     */
    public function setSex($sex): void
    {
        $this->sex = $sex;
    }

    /**
     * @return string|null
     */
    public function getSex(): ?string
    {
        return $this->sex;
    }

    /**
     * @param string|null $tel
     */
    public function setTel($tel): void
    {
        $this->tel = $tel;
    }

    /**
     * @return string|null
     */
    public function getTel(): ?string
    {
        return $this->tel;
    }

    /**
     * @param string|null $addr
     */
    public function setAddr($addr): void
    {
        $this->addr = $addr;
    }

    /**
     * @return string|null
     */
    public function getAddr(): ?string
    {
        return $this->addr;
    }

    /**
     * @param string|null $card
     */
    public function setCard($card): void
    {
        $this->card = $card;
    }

    /**
     * @return string|null
     */
    public function getCard(): ?string
    {
        return $this->card;
    }

    /**
     * @param string|null $salary
     */
    public function setSalary($salary): void
    {
        $this->salary = $salary;
    }

    /**
     * @return float|null
     */
    public function getSalary(): ?float
    {
        return $this->salary;
    }

    /**
     * @param int|null $addTime
     */
    public function setAddTime(?int $addTime): void
    {
        $this->addTime = $addTime;
    }

    /**
     * @return int|null
     */
    public function getAddTime(): ?int
    {
        return $this->addTime;
    }

    /**
     * @param int|null $lastUpdateTime
     */
    public function setLastUpdateTime(?int $lastUpdateTime): void
    {
        $this->lastUpdateTime = $lastUpdateTime;
    }

    /**
     * @return int|null
     */
    public function getLastUpdateTime(): ?int
    {
        return $this->lastUpdateTime;
    }

}
